package cn.edu.njnu.opengmpback.user.dao;

import cn.edu.njnu.opengmpback.Modeling.entity.Project;
import cn.edu.njnu.opengmpback.common.utils.JsonResult;
import cn.edu.njnu.opengmpback.resource.entity.UserData;
import cn.edu.njnu.opengmpback.user.entity.History;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description
 * @Auther wyjq
 * @Date 2022/4/6
 **/
@Repository
public interface HistoryDao extends MongoRepository<History, String> {
    Page<History> findAllByUserId(String userId, Pageable pageable);
}
